<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C# API Reference for Windows: JCSDK.JCMediaDevice.JCMediaDevice类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C# API Reference for Windows
   &#160;<span id="projectnumber">2.3.3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_j_c_s_d_k.html">JCSDK</a></li><li class="navelem"><a class="el" href="namespace_j_c_s_d_k_1_1_j_c_media_device.html">JCMediaDevice</a></li><li class="navelem"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCSDK.JCMediaDevice.JCMediaDevice类 参考<div class="ingroups"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html">设备模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 JCSDK.JCMediaDevice.JCMediaDevice 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.png" usemap="#JCSDK.JCMediaDevice.JCMediaDevice_map" alt=""/>
  <map id="JCSDK.JCMediaDevice.JCMediaDevice_map" name="JCSDK.JCMediaDevice.JCMediaDevice_map">
<area href="interface_j_c_s_d_k_1_1_j_c_client_1_1_j_c_client_callback.html" alt="JCSDK.JCClient.JCClientCallback" shape="rect" coords="0,0,243,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a77a644fd6e050a762267aa97386cdb71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a77a644fd6e050a762267aa97386cdb71">startCameraVideo</a> (<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga440618b370a53169b48134c02056144b">JCMediaDeviceRenderMode</a> mode)</td></tr>
<tr class="separator:a77a644fd6e050a762267aa97386cdb71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24254086c972e5268150e0d1b5cb9121"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a24254086c972e5268150e0d1b5cb9121">startVideo</a> (string videoSource, <a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga440618b370a53169b48134c02056144b">JCMediaDeviceRenderMode</a> mode)</td></tr>
<tr class="separator:a24254086c972e5268150e0d1b5cb9121"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a658da30cfd135ae7e96d02621519716b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a658da30cfd135ae7e96d02621519716b">stopVideo</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> canvas)</td></tr>
<tr class="separator:a658da30cfd135ae7e96d02621519716b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9071a217c42c87c73b148e8039241fb8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a9071a217c42c87c73b148e8039241fb8">startAudio</a> ()</td></tr>
<tr class="separator:a9071a217c42c87c73b148e8039241fb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a858f82b86963d7a9ce25db60fc539ea1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a858f82b86963d7a9ce25db60fc539ea1">stopAudio</a> ()</td></tr>
<tr class="separator:a858f82b86963d7a9ce25db60fc539ea1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a981aa10325417284d5b48d74a120e0e1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a981aa10325417284d5b48d74a120e0e1">startCamera</a> ()</td></tr>
<tr class="separator:a981aa10325417284d5b48d74a120e0e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a3b5626a6f402b9a7627a71140891ed"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a0a3b5626a6f402b9a7627a71140891ed">stopCamera</a> ()</td></tr>
<tr class="separator:a0a3b5626a6f402b9a7627a71140891ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6060ab0db34ce874e23b90c3668aa69e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a6060ab0db34ce874e23b90c3668aa69e">switchCamera</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_camera.html">JCMediaDeviceCamera</a> <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a407939ed9968223101768da45cb73408">camera</a>)</td></tr>
<tr class="separator:a6060ab0db34ce874e23b90c3668aa69e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a679543664b494b362fb05c4de51b3358"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a679543664b494b362fb05c4de51b3358">setCameraProperty</a> (int width, int height, int framerate)</td></tr>
<tr class="separator:a679543664b494b362fb05c4de51b3358"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae21e4220ee7f04165162d4f634b49fe0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#ae21e4220ee7f04165162d4f634b49fe0">setScreenCaptureProperty</a> (int width, int height, int framerate)</td></tr>
<tr class="separator:ae21e4220ee7f04165162d4f634b49fe0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5742e9679ab121f72c5dfd38f393a2c8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a5742e9679ab121f72c5dfd38f393a2c8">startVideoFile</a> ()</td></tr>
<tr class="separator:a5742e9679ab121f72c5dfd38f393a2c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99994500b2472e67df6dccb26eb3b215"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a99994500b2472e67df6dccb26eb3b215">setVideoFileFrame</a> (byte[] srcFrame, <a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gae28b97ef5f895886f1e3893fe983dfc7">JCMediaDeviceVideoPixelFormat</a> format, int width, int height)</td></tr>
<tr class="separator:a99994500b2472e67df6dccb26eb3b215"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e90dfb83bd635647cab1b11685a0d6f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a6e90dfb83bd635647cab1b11685a0d6f">stopVideoFile</a> ()</td></tr>
<tr class="separator:a6e90dfb83bd635647cab1b11685a0d6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:aff164c84a0268bc6c38891d520af8fb4"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#aff164c84a0268bc6c38891d520af8fb4">create</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_client_1_1_j_c_client.html">JCClient.JCClient</a> client, <a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_callback.html">JCMediaDeviceCallback</a> callback)</td></tr>
<tr class="separator:aff164c84a0268bc6c38891d520af8fb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5b0c4dce1b4f120347f076781de5181"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#ac5b0c4dce1b4f120347f076781de5181">destroy</a> ()</td></tr>
<tr class="separator:ac5b0c4dce1b4f120347f076781de5181"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a3396cc1def614f95cfa85719c0fa75ea"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a3396cc1def614f95cfa85719c0fa75ea">videoFileId</a><code> [get]</code></td></tr>
<tr class="separator:a3396cc1def614f95cfa85719c0fa75ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a163debf3319df5dddfc26ad4ebb2a151"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a163debf3319df5dddfc26ad4ebb2a151">cameraOpen</a><code> [get]</code></td></tr>
<tr class="separator:a163debf3319df5dddfc26ad4ebb2a151"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab412bd5f61c7a45f99c9ea7bcb7c98c8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#ab412bd5f61c7a45f99c9ea7bcb7c98c8">videoFileOpen</a><code> [get]</code></td></tr>
<tr class="separator:ab412bd5f61c7a45f99c9ea7bcb7c98c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a407939ed9968223101768da45cb73408"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_camera.html">JCMediaDeviceCamera</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a407939ed9968223101768da45cb73408">camera</a><code> [get, set]</code></td></tr>
<tr class="separator:a407939ed9968223101768da45cb73408"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88d4d08fe8df771c1bec23ff9ba45001"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_camera.html">JCMediaDeviceCamera</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a88d4d08fe8df771c1bec23ff9ba45001">defaultCamera</a><code> [get, set]</code></td></tr>
<tr class="separator:a88d4d08fe8df771c1bec23ff9ba45001"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8ca58cf779278f9e5af252d1ebec38d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_audio_param.html">JCMediaDeviceAudioParam</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#ad8ca58cf779278f9e5af252d1ebec38d">audioParam</a><code> [get]</code></td></tr>
<tr class="separator:ad8ca58cf779278f9e5af252d1ebec38d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5580a624748bcdda152e4081e184505e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_audio.html">JCMediaDeviceAudio</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a5580a624748bcdda152e4081e184505e">audioInput</a><code> [get, set]</code></td></tr>
<tr class="separator:a5580a624748bcdda152e4081e184505e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff555718b5050cc62a42f2b4f756a009"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_audio.html">JCMediaDeviceAudio</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#aff555718b5050cc62a42f2b4f756a009">audioOutput</a><code> [get, set]</code></td></tr>
<tr class="separator:aff555718b5050cc62a42f2b4f756a009"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a381d6478637fe8e9a25e726057676628"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_camera.html">JCMediaDeviceCamera</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a381d6478637fe8e9a25e726057676628">cameras</a><code> [get]</code></td></tr>
<tr class="separator:a381d6478637fe8e9a25e726057676628"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab45505b360b11be177dc4467c01333de"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_audio.html">JCMediaDeviceAudio</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#ab45505b360b11be177dc4467c01333de">audioInputs</a><code> [get]</code></td></tr>
<tr class="separator:ab45505b360b11be177dc4467c01333de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a228a9576c098036d0a211b2ea72e4c2d"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_audio.html">JCMediaDeviceAudio</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a228a9576c098036d0a211b2ea72e4c2d">audioOutputs</a><code> [get]</code></td></tr>
<tr class="separator:a228a9576c098036d0a211b2ea72e4c2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8028f44be4485deea4ad813cebd98c5f"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_window.html">JCMediaDeviceWindow</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a8028f44be4485deea4ad813cebd98c5f">windows</a><code> [get]</code></td></tr>
<tr class="separator:a8028f44be4485deea4ad813cebd98c5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37ab24c8dad0ac25cc2a42da8ca6b69f"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_window.html">JCMediaDeviceWindow</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a37ab24c8dad0ac25cc2a42da8ca6b69f">desktops</a><code> [get]</code></td></tr>
<tr class="separator:a37ab24c8dad0ac25cc2a42da8ca6b69f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a885ac037c95e9832f04b14e375f95055"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_window.html">JCMediaDeviceWindow</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a885ac037c95e9832f04b14e375f95055">screenshareWindow</a><code> [get, set]</code></td></tr>
<tr class="separator:a885ac037c95e9832f04b14e375f95055"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa32081a08e88508c6f2faec0fffa7d6c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#aa32081a08e88508c6f2faec0fffa7d6c">audioStart</a><code> [get]</code></td></tr>
<tr class="separator:aa32081a08e88508c6f2faec0fffa7d6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>设备模块 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="aff164c84a0268bc6c38891d520af8fb4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff164c84a0268bc6c38891d520af8fb4">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice</a> JCSDK.JCMediaDevice.JCMediaDevice.create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_client_1_1_j_c_client.html">JCClient.JCClient</a>&#160;</td>
          <td class="paramname"><em>client</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_callback.html">JCMediaDeviceCallback</a>&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice</a> 对象</p>
<p><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice</a> 的所有接口函数，如无特殊说明，都建议在主线程调用</p>
<dl class="section note"><dt>注解</dt><dd><ul>
<li>调用此方法创建 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice</a> 对象后，期间没有调用过 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#ac5b0c4dce1b4f120347f076781de5181">destroy</a> 方法销毁对象，然后又重复调用此方法，会直接返回第一次创建的 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice</a> 对象</li>
<li>调用此方法前确保 <a class="el" href="namespace_j_c_s_d_k_1_1_j_c_client.html">JCClient</a> 已完成初始化，即 <a class="el" href="class_j_c_s_d_k_1_1_j_c_client_1_1_j_c_client.html#a8b114554ece8a6e4e03dd8f91812b802">state</a> 状态值不等于 <a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga2aa0686490aced8d8c24d3318a989af8">NotInit</a></li>
</ul>
</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">client</td><td><a class="el" href="namespace_j_c_s_d_k_1_1_j_c_client.html">JCClient</a> 对象 </td></tr>
    <tr><td class="paramname">callback</td><td><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_callback.html">JCMediaDeviceCallback</a> 对象，用于回调相关通知 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice</a> 对象 </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">client、callback 任意一个参数传空就会调用失败</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac5b0c4dce1b4f120347f076781de5181"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5b0c4dce1b4f120347f076781de5181">&#9670;&nbsp;</a></span>destroy()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void JCSDK.JCMediaDevice.JCMediaDevice.destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>销毁 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice</a> 对象</p>
<dl class="section note"><dt>注解</dt><dd>此方法为异步调用，所以在调用此方法后不能马上调用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#aff164c84a0268bc6c38891d520af8fb4">create</a> 方法去重新创建 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice</a> 对象 </dd></dl>

</div>
</div>
<a id="a679543664b494b362fb05c4de51b3358"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a679543664b494b362fb05c4de51b3358">&#9670;&nbsp;</a></span>setCameraProperty()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaDevice.JCMediaDevice.setCameraProperty </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>framerate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置摄像头采集属性</p>
<p>在调用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#a645b9bbd24f34e293984a42c398f1360">startSelfVideo</a> 方法或 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html#ab4f1034f35315029aac3949d7e3d52c9">startVideo</a> 方法开启自身视频渲染前设置即可生效</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>采集宽度，默认640 </td></tr>
    <tr><td class="paramname">height</td><td>采集高度，默认360 </td></tr>
    <tr><td class="paramname">frameRate</td><td>采集帧速率，默认24 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae21e4220ee7f04165162d4f634b49fe0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae21e4220ee7f04165162d4f634b49fe0">&#9670;&nbsp;</a></span>setScreenCaptureProperty()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaDevice.JCMediaDevice.setScreenCaptureProperty </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>framerate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置屏幕共享采集属性</p>
<p>在调用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel.html#abc9400b483feba260a3b9f23d4186d8c">enableScreenOrWindowShare</a> 方法开启屏幕共享前设置即可生效</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>采集宽度，默认1280 </td></tr>
    <tr><td class="paramname">height</td><td>采集高度，默认720 </td></tr>
    <tr><td class="paramname">frameRate</td><td>采集帧速率，默认10 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a99994500b2472e67df6dccb26eb3b215"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99994500b2472e67df6dccb26eb3b215">&#9670;&nbsp;</a></span>setVideoFileFrame()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaDevice.JCMediaDevice.setVideoFileFrame </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"><em>srcFrame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gae28b97ef5f895886f1e3893fe983dfc7">JCMediaDeviceVideoPixelFormat</a>&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>逐帧采集视频画面</p>
<p>调用此方法时要保证文件视频源已开启</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>画面二进制数据 </td></tr>
    <tr><td class="paramname">format</td><td><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gae28b97ef5f895886f1e3893fe983dfc7">视频像素格式</a> </td></tr>
    <tr><td class="paramname">width</td><td>宽 </td></tr>
    <tr><td class="paramname">height</td><td>高 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9071a217c42c87c73b148e8039241fb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9071a217c42c87c73b148e8039241fb8">&#9670;&nbsp;</a></span>startAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDevice.startAudio </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>启动音频</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000004">弃用:</a></b></dt><dd>从 JCSDK-2.3.1-202009101 版本开始弃用，在通话连接中或者加入频道成功时，内部会自动调用此方法来启动音频</dd></dl>
<dl class="section return"><dt>返回</dt><dd>调用是否成功<ul>
<li>true：调用成功</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a981aa10325417284d5b48d74a120e0e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a981aa10325417284d5b48d74a120e0e1">&#9670;&nbsp;</a></span>startCamera()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDevice.startCamera </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>开启摄像头</p>
<dl class="section note"><dt>注解</dt><dd>调用此方法时需要保证默认摄像头不为空，即 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a88d4d08fe8df771c1bec23ff9ba45001">defaultCamera</a> 不为空，否则将直接返回 false</dd></dl>
<dl class="section return"><dt>返回</dt><dd>调用是否成功<ul>
<li>true：正常执行调用流程<ul>
<li>若调用此方法前摄像头已打开，不会收到回调通知</li>
<li>若调用此方法前摄像头未打开，会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_callback.html#a1c301ec3cbb57e73ff0e78de53117aba">onCameraUpdate</a> 通知</li>
</ul>
</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a77a644fd6e050a762267aa97386cdb71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77a644fd6e050a762267aa97386cdb71">&#9670;&nbsp;</a></span>startCameraVideo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> JCSDK.JCMediaDevice.JCMediaDevice.startCameraVideo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga440618b370a53169b48134c02056144b">JCMediaDeviceRenderMode</a>&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>开始自身视频渲染</p>
<p>获取本端视频预览对象 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> ，通过此对象能获得视图用于UI显示</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000001">弃用:</a></b></dt><dd>从 JCSDK-2.3.1-202009101 版本开始弃用，一对一通话建议使用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#a645b9bbd24f34e293984a42c398f1360">startSelfVideo</a> 方法代替，媒体频道建议使用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html#ab4f1034f35315029aac3949d7e3d52c9">startVideo</a> 方法代替</dd></dl>
<dl class="section note"><dt>注解</dt><dd>调用此方法时需要保证默认摄像头不为空，即 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a88d4d08fe8df771c1bec23ff9ba45001">defaultCamera</a> 不为空，否则将直接返回 null</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>渲染模式：<ul>
<li><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga440618b370a53169b48134c02056144b">FullScreen</a> : 铺满窗口，会有裁剪</li>
<li><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga440618b370a53169b48134c02056144b">FullContent</a> : 全图像显示，会有黑边</li>
<li><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga440618b370a53169b48134c02056144b">FullAuto</a> : 自适应 </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> 对象：开始自身视频渲染成功</li>
<li>null：开始自身视频渲染失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a24254086c972e5268150e0d1b5cb9121"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24254086c972e5268150e0d1b5cb9121">&#9670;&nbsp;</a></span>startVideo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> JCSDK.JCMediaDevice.JCMediaDevice.startVideo </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>videoSource</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga440618b370a53169b48134c02056144b">JCMediaDeviceRenderMode</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>开始其他端的视频渲染</p>
<p>获取其他端的视频预览对象 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> ，通过此对象能获得视图用于UI显示</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000002">弃用:</a></b></dt><dd>从 JCSDK-2.3.1-202009101 版本开始弃用，一对一通话建议使用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#a990a4516bf95c321f89d843a79f9dde9">startOtherVideo</a> 方法代替，频道建议使用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html#ab4f1034f35315029aac3949d7e3d52c9">startVideo</a> 方法代替</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">videoSource</td><td>渲染标识串，通过 JCMediaChannelParticipant 的 renderId 方法和 JCCallItem 的 renderId 方法可以得到 </td></tr>
    <tr><td class="paramname">mode</td><td>渲染模式：<ul>
<li><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga440618b370a53169b48134c02056144b">FullScreen</a> : 铺满窗口，会有裁剪</li>
<li><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga440618b370a53169b48134c02056144b">FullContent</a> : 全图像显示，会有黑边</li>
<li><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga440618b370a53169b48134c02056144b">FullAuto</a> : 自适应 </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> 对象：开始自身视频渲染成功</li>
<li>null：开始自身视频渲染失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a5742e9679ab121f72c5dfd38f393a2c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5742e9679ab121f72c5dfd38f393a2c8">&#9670;&nbsp;</a></span>startVideoFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDevice.startVideoFile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>开启视频文件作为视频输入源</p>
<dl class="section note"><dt>注解</dt><dd>文件和摄像头作为视频输入源只能存在一种，如果当前摄像头已开启的话会关闭摄像头</dd></dl>
<dl class="section return"><dt>返回</dt><dd>调用是否成功<ul>
<li>true：正常执行调用流程<ul>
<li>若调用此方法时文件视频源已开启，则不会收到回调</li>
<li>若调用此方法时文件视频源还未开启，则会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_callback.html#a1c301ec3cbb57e73ff0e78de53117aba">onCameraUpdate</a> 回调</li>
</ul>
</li>
<li>false：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a858f82b86963d7a9ce25db60fc539ea1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a858f82b86963d7a9ce25db60fc539ea1">&#9670;&nbsp;</a></span>stopAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDevice.stopAudio </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>停止音频</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000005">弃用:</a></b></dt><dd>从 JCSDK-2.3.1-202009101 版本开始弃用，在通话挂断时或者离开频道时，内部会自动调用此方法来停止音频</dd></dl>
<dl class="section return"><dt>返回</dt><dd>调用是否成功<ul>
<li>true：调用成功</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a0a3b5626a6f402b9a7627a71140891ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a3b5626a6f402b9a7627a71140891ed">&#9670;&nbsp;</a></span>stopCamera()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDevice.stopCamera </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>关闭摄像头</p>
<dl class="section return"><dt>返回</dt><dd>调用是否成功<ul>
<li>true：正常执行调用流程<ul>
<li>调用此方法前摄像头已打开，不会收到回调通知</li>
<li>调用此方法前摄像头未打开，会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_callback.html#a1c301ec3cbb57e73ff0e78de53117aba">onCameraUpdate</a> 通知</li>
</ul>
</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a658da30cfd135ae7e96d02621519716b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a658da30cfd135ae7e96d02621519716b">&#9670;&nbsp;</a></span>stopVideo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaDevice.JCMediaDevice.stopVideo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a>&#160;</td>
          <td class="paramname"><em>canvas</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>停止视频渲染</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000003">弃用:</a></b></dt><dd>从 JCSDK-2.3.1-202009101 版本开始弃用，一对一通话建议使用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#ad62f0f3918548078e71b9d141bb67a22">stopSelfVideo</a> 和 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#aeac094f0e58c3595d29a43b433725596">stopOtherVideo</a> 方法代替，媒体频道渲染建议使用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html#af7483f19795e187a939c43469f049ff8">stopVideo</a> 方法代替</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">canvas</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> 对象，由 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a24254086c972e5268150e0d1b5cb9121">startVideo</a> 和 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a77a644fd6e050a762267aa97386cdb71">startCameraVideo</a> 返回 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6e90dfb83bd635647cab1b11685a0d6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e90dfb83bd635647cab1b11685a0d6f">&#9670;&nbsp;</a></span>stopVideoFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDevice.stopVideoFile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>关闭逐帧采集画面</p>
<dl class="section return"><dt>返回</dt><dd>调用是否成功<ul>
<li>true：正常执行调用流程<ul>
<li>若调用此方法时文件视频源已关闭，不会收到回调</li>
<li>若调用此方法时文件视频源未关闭，则会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_callback.html#a1c301ec3cbb57e73ff0e78de53117aba">onCameraUpdate</a> 回调</li>
</ul>
</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a6060ab0db34ce874e23b90c3668aa69e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6060ab0db34ce874e23b90c3668aa69e">&#9670;&nbsp;</a></span>switchCamera()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDevice.switchCamera </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_camera.html">JCMediaDeviceCamera</a>&#160;</td>
          <td class="paramname"><em>camera</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>切换摄像头</p>
<p>内部会根据当前摄像头类型来进行切换</p>
<ul>
<li>调用此方法时要保证摄像头已打开，否则将直接返回 false</li>
<li>设备拥有两个以上摄像头，否则将直接返回 true</li>
</ul>
<dl class="section return"><dt>返回</dt><dd>调用是否成功<ul>
<li>true：调用成功</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<h2 class="groupheader">属性说明</h2>
<a id="a5580a624748bcdda152e4081e184505e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5580a624748bcdda152e4081e184505e">&#9670;&nbsp;</a></span>audioInput</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_audio.html">JCMediaDeviceAudio</a> JCSDK.JCMediaDevice.JCMediaDevice.audioInput</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>当前音频输入设备 </p>

</div>
</div>
<a id="ab45505b360b11be177dc4467c01333de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab45505b360b11be177dc4467c01333de">&#9670;&nbsp;</a></span>audioInputs</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_audio.html">JCMediaDeviceAudio</a>&gt; JCSDK.JCMediaDevice.JCMediaDevice.audioInputs</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>音频输入设备列表 </p>

</div>
</div>
<a id="aff555718b5050cc62a42f2b4f756a009"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff555718b5050cc62a42f2b4f756a009">&#9670;&nbsp;</a></span>audioOutput</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_audio.html">JCMediaDeviceAudio</a> JCSDK.JCMediaDevice.JCMediaDevice.audioOutput</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>当前音频输出设备 </p>

</div>
</div>
<a id="a228a9576c098036d0a211b2ea72e4c2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a228a9576c098036d0a211b2ea72e4c2d">&#9670;&nbsp;</a></span>audioOutputs</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_audio.html">JCMediaDeviceAudio</a>&gt; JCSDK.JCMediaDevice.JCMediaDevice.audioOutputs</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>音频输出设备列表 </p>

</div>
</div>
<a id="ad8ca58cf779278f9e5af252d1ebec38d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8ca58cf779278f9e5af252d1ebec38d">&#9670;&nbsp;</a></span>audioParam</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_audio_param.html">JCMediaDeviceAudioParam</a> JCSDK.JCMediaDevice.JCMediaDevice.audioParam</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设备音频参数</p>
<p>此参数不设置，将使用默认值。此参数在调用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#a9071a217c42c87c73b148e8039241fb8">startAudio</a> 方法前设置，即连接通话或加入频道前设置此参数 </p>

</div>
</div>
<a id="aa32081a08e88508c6f2faec0fffa7d6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa32081a08e88508c6f2faec0fffa7d6c">&#9670;&nbsp;</a></span>audioStart</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDevice.audioStart</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>音频是否启动</p>
<p>一般正式开启通话前需要调用此接口</p>
<ul>
<li>true：已启动</li>
<li>false：未启动 </li>
</ul>

</div>
</div>
<a id="a407939ed9968223101768da45cb73408"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a407939ed9968223101768da45cb73408">&#9670;&nbsp;</a></span>camera</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_camera.html">JCMediaDeviceCamera</a> JCSDK.JCMediaDevice.JCMediaDevice.camera</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>当前使用的摄像头 </p>

</div>
</div>
<a id="a163debf3319df5dddfc26ad4ebb2a151"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a163debf3319df5dddfc26ad4ebb2a151">&#9670;&nbsp;</a></span>cameraOpen</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDevice.cameraOpen</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>摄像头是否已打开</p><ul>
<li>true： 已打开</li>
<li>false： 未打开 </li>
</ul>

</div>
</div>
<a id="a381d6478637fe8e9a25e726057676628"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a381d6478637fe8e9a25e726057676628">&#9670;&nbsp;</a></span>cameras</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_camera.html">JCMediaDeviceCamera</a>&gt; JCSDK.JCMediaDevice.JCMediaDevice.cameras</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>摄像头列表 </p>

</div>
</div>
<a id="a88d4d08fe8df771c1bec23ff9ba45001"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88d4d08fe8df771c1bec23ff9ba45001">&#9670;&nbsp;</a></span>defaultCamera</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_camera.html">JCMediaDeviceCamera</a> JCSDK.JCMediaDevice.JCMediaDevice.defaultCamera</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>默认摄像头 </p>

</div>
</div>
<a id="a37ab24c8dad0ac25cc2a42da8ca6b69f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37ab24c8dad0ac25cc2a42da8ca6b69f">&#9670;&nbsp;</a></span>desktops</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_window.html">JCMediaDeviceWindow</a>&gt; JCSDK.JCMediaDevice.JCMediaDevice.desktops</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>桌面列表 </p>

</div>
</div>
<a id="a885ac037c95e9832f04b14e375f95055"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a885ac037c95e9832f04b14e375f95055">&#9670;&nbsp;</a></span>screenshareWindow</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_window.html">JCMediaDeviceWindow</a> JCSDK.JCMediaDevice.JCMediaDevice.screenshareWindow</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>屏幕分享的窗口 </p>

</div>
</div>
<a id="a3396cc1def614f95cfa85719c0fa75ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3396cc1def614f95cfa85719c0fa75ea">&#9670;&nbsp;</a></span>videoFileId</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string JCSDK.JCMediaDevice.JCMediaDevice.videoFileId</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>视频文件作为本地视频源的渲染标识 </p>

</div>
</div>
<a id="ab412bd5f61c7a45f99c9ea7bcb7c98c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab412bd5f61c7a45f99c9ea7bcb7c98c8">&#9670;&nbsp;</a></span>videoFileOpen</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDevice.videoFileOpen</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>文件播放是否打开</p><ul>
<li>true： 已打开文件播放</li>
<li>false： 未打开文件播放 </li>
</ul>

</div>
</div>
<a id="a8028f44be4485deea4ad813cebd98c5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8028f44be4485deea4ad813cebd98c5f">&#9670;&nbsp;</a></span>windows</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_window.html">JCMediaDeviceWindow</a>&gt; JCSDK.JCMediaDevice.JCMediaDevice.windows</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>窗口列表 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>JCSDK/JCSDK/JCMediaDevice/JCMediaDevice.cs</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
